<?php

////
// The HTML form submit button wrapper function
// Outputs a button in the selected language
  
  
  function tep_list_products_row($img, $name, $price, $desc, $view, $buy)
{
global $counter;
if ($counter!=0) {
$listing = '

		<tr>
			<td colspan="2">
				<br style="line-height:17px">
				<div class="line"><img alt="" src="'.DIR_WS_TEMPLATES . TEMPLATE_NAME.'/images/spacer.gif" width="1" height="1"><br></div>
				<br style="line-height:17px">
			</td>
		</tr>

';
}


$listing .= ' <tr>
				<td>
					<table width="100%" class="product">
					  <tr>
						<td width="140" align="center">
							<img alt="" src="'.DIR_WS_TEMPLATES . TEMPLATE_NAME.'/images/spacer.gif" width="140" height="1"><br>
							'.$img.'<br>
							<br style="line-height:8px">
							'.$price.'
						</td>
						<td width="100%">
							'.$name.'<br>
							<br style="line-height:11px">
							'.$desc.'<br>
							<br style="line-height:8px">
							'.$buy.'<br>
							<br style="line-height:3px">
							'.$view.'<br>
						</td>
					  </tr>
					</table>
				</td>
			  </tr>';

$counter++;

 return $listing;
}


  function tep_list_products_col($img, $name, $price, $desc, $view, $buy)
{


global $counter;
$counter++;

$listing .= '<td>
					<br style="line-height:15px">
					'.$img.'<br>
					<br style="line-height:5px">
					'.$name.'<br>
					<br style="line-height:10px">
					'.$desc.'<br>
					<br style="line-height:10px">
					'.$price.'<br>
					<br style="line-height:13px">
					'.$buy.'<br>
					<br style="line-height:3px">
					'.$view.'<br>
					<br style="line-height:15px">
			</td>';



 return $listing;
}


  
  function tep_template_image_submit($image, $alt = '', $parameters = '') {
    global $language;

    $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/images/buttons/' . $language . '/' .  $image) . '" border="0" alt="' . tep_output_string($alt) . '"';

    if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';

    if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;

    $image_submit .= '>';

    return $image_submit;
  }

////
// Output a function button in the selected language
  function tep_template_image_button($image, $alt = '', $parameters = '') {
    global $language;

    return tep_image(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/images/buttons/' . $language . '/' .  $image, $alt, '', '', $parameters);
  }


  function table_image_border_top_cart($left, $right,$header){
if (MAIN_TABLE_BORDER == 'yes'){
?>
      <!--Lango Added for Template MOD: BOF-->
        <tr>
         <td>
<?PHP
  $info_box_contents = array();
  $info_box_contents[] = array('align' => 'left', 'text' => $header );
  new infoBoxHeading($info_box_contents, $left, $right);
?>
				<table width="100%" cellpadding="0" cellspacing="0" class="content">
                  <tr>
                    <td width="9" class="tall-l2"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/spacer.gif" ></td>
                    <td width="100%" class="padding2 product">
                      <table style="width:100%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td>
                          		<table width="100%" cellpadding="0" cellspacing="0" class="content">
					  
      <!--Lango Added for Template MOD: EOF-->
<?php
}
}


 function table_image_border_bottom_cart(){
if (MAIN_TABLE_BORDER == 'yes'){
?>
                          		</table>
                            </td>
                          </tr>
                        </table>
                      <td width="9" class="tall-r2"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/spacer.gif" ></td>
                  </tr>
                  <tr>
                    <td width="9"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/k-bl.gif" ><br></td>
                    <td width="100%" class="tall-b"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/spacer.gif" ></td>
                    <td width="9"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/k-br.gif" ><br></td>
                  </tr>
                </table>
		  
<?PHP
$info_box_contents = array();
?>
     </td></tr>
      <!--Lango Added for Template MOD: EOF-->
<?php
}
}


  function table_image_border_top_main($left, $right,$header){
if (MAIN_TABLE_BORDER == 'yes'){
?>
      <!--Lango Added for Template MOD: BOF-->
        <tr>
         <td>
<?PHP
  $info_box_contents = array();
  $info_box_contents[] = array('align' => 'left', 'text' => $header );
  new infoBoxHeading($info_box_contents, $left, $right);
?>
				<table width="100%" cellpadding="0" cellspacing="0" class="content">
                  <tr>
                    <td width="9" class="tall-l2"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/spacer.gif" ></td>
                    <td width="100%" class="padding2 product">
                      <table style="width:100%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td>
					  
      <!--Lango Added for Template MOD: EOF-->
<?php
}
}


 function table_image_border_bottom_main(){
if (MAIN_TABLE_BORDER == 'yes'){
?>
                            </td>
                          </tr>
                        </table>
                      <td width="9" class="tall-r2"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/spacer.gif" ></td>
                  </tr>
                  <tr>
                    <td width="9"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/k-bl.gif" ><br></td>
                    <td width="100%" class="tall-b"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/spacer.gif" ></td>
                    <td width="9"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/k-br.gif" ><br></td>
                  </tr>
                </table>
		  
<?PHP
$info_box_contents = array();
?>
     </td></tr>
      <!--Lango Added for Template MOD: EOF-->
<?php
}
}


  function table_image_border_top2($left, $right,$header){
if (MAIN_TABLE_BORDER == 'yes'){
?>
      <!--Lango Added for Template MOD: BOF-->
        <tr>
         <td >
<?PHP
  $info_box_contents = array();
  $info_box_contents[] = array('align' => 'left', 'text' => $header );
  new infoBoxHeading($info_box_contents, $left, $right);
?>
				<table width="100%" cellpadding="0" cellspacing="0" class="content">
                  <tr>
                    <td width="9" class="tall-l2"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/spacer.gif" ></td>
                    <td width="100%" class="padding2 product">
                      <table style="width:100%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td>
					  
      <!--Lango Added for Template MOD: EOF-->
<?php
}
}


 function table_image_border_bottom2(){
if (MAIN_TABLE_BORDER == 'yes'){
?>
                              </td>
                            </tr>
                          </table>
                      <td width="9" class="tall-r2"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/spacer.gif" ></td>
                  </tr>
                  <tr>
                    <td width="9"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/k-bl.gif" ><br></td>
                    <td width="100%" class="tall-b"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/spacer.gif" ></td>
                    <td width="9"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/k-br.gif" ><br></td>
                  </tr>
                </table>
		  
<?PHP
$info_box_contents = array();
?>
     </td></tr>
      <!--Lango Added for Template MOD: EOF-->
<?php
}
}


  function table_image_border_top($left, $right,$header){
if (MAIN_TABLE_BORDER == 'yes'){
?>
      <!--Lango Added for Template MOD: BOF-->
        <tr>
          <td >
<?PHP
$info_box_contents = array();
  $info_box_contents[] = array('align' => 'left', 'text' => $header );
  new infoBoxHeading($info_box_contents, $left, $right);
?>
				<table width="100%" cellpadding="0" cellspacing="0" class="content">
                  <tr>
                    <td width="9" class="tall-l2"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/spacer.gif" ></td>
                    <td width="100%" class="padding2 product">
                      <table style="width:100%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td>
                    		  <table style="width:100%" cellpadding="0" cellspacing="0">
                  
      <!--Lango Added for Template MOD: EOF-->
<?php
}
}


 function table_image_border_bottom(){
if (MAIN_TABLE_BORDER == 'yes'){
?>
<?PHP
$info_box_contents = array();
?>


                	</table>
                    
                              </td>
                            </tr>
                          </table>
                      <td width="9" class="tall-r2"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/spacer.gif" ></td>
                  </tr>
                  <tr>
                    <td width="9"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/k-bl.gif" ><br></td>
                    <td width="100%" class="tall-b"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/spacer.gif" ></td>
                    <td width="9"><img alt="" src="<?php echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/k-br.gif" ><br></td>
                  </tr>
                </table>
     </td></tr>
      <!--Lango Added for Template MOD: EOF-->
<?php
}
}


/*  IMAGE BORDER  */

  function tm_image_border($image){

   $tm_image = '' . $image . '';
	return $tm_image;
}

/*  IMAGE BORDER end  */
?>
